<?php

abstract class Validate_Abstract
{
	protected $config = array('msg' => 'invalidate');

	function __construct($config)
	{
		if ($config)
		{
			$this -> config = array_merge($this -> config, $config);
		}

	}

	abstract function isValid($value, $params = null);

	public function getMsg()
	{
		return $this -> config['msg'];
	}

}
